
package com.servicelivedb.data;

import java.io.Serializable;


/**
 *  serviceliveDB.UserRoleId
 *  02/10/2013 10:03:06
 * 
 */
public class UserRoleId
    implements Serializable
{

    private Integer customerRoleId;
    private Integer customer;
    private String role;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserRoleId)) {
            return false;
        }
        UserRoleId other = ((UserRoleId) o);
        if (this.customerRoleId == null) {
            if (other.customerRoleId!= null) {
                return false;
            }
        } else {
            if (!this.customerRoleId.equals(other.customerRoleId)) {
                return false;
            }
        }
        if (this.customer == null) {
            if (other.customer!= null) {
                return false;
            }
        } else {
            if (!this.customer.equals(other.customer)) {
                return false;
            }
        }
        if (this.role == null) {
            if (other.role!= null) {
                return false;
            }
        } else {
            if (!this.role.equals(other.role)) {
                return false;
            }
        }
        return true;
    }

    public int hashCode() {
        int rtn = 17;
        rtn = (rtn* 37);
        if (this.customerRoleId!= null) {
            rtn = (rtn + this.customerRoleId.hashCode());
        }
        rtn = (rtn* 37);
        if (this.customer!= null) {
            rtn = (rtn + this.customer.hashCode());
        }
        rtn = (rtn* 37);
        if (this.role!= null) {
            rtn = (rtn + this.role.hashCode());
        }
        return rtn;
    }

    public Integer getCustomerRoleId() {
        return customerRoleId;
    }

    public void setCustomerRoleId(Integer customerRoleId) {
        this.customerRoleId = customerRoleId;
    }

    public Integer getCustomer() {
        return customer;
    }

    public void setCustomer(Integer customer) {
        this.customer = customer;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

}
